// blatt7.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Exchange.h"
#include <stdio.h>


int _tmain(int argc, _TCHAR* argv[])
{
	Exchange &exchange = *new Exchange(2500, 3000);
	exchange.setEURToUSDExchangeRate(1.3);

	double amountEur = 30;
	double amountUsd = exchange.convert(amountEur, true);
	printf("%.2f EUR = %.2f USD\n", amountEur, amountUsd);
	printf("%.2f USD = %.2f EUR\n", amountUsd, amountEur);

	double exchUsd = exchange.exchange(2000, true);
	printf("Returned Value: %.2f\n", exchUsd);

	exchUsd = exchange.exchange(2000, true);
	printf("Returned Value: %.2f\n", exchUsd);

	getchar();
}

